import request from '@/utils/request'
//所有跟商品规格相关的异步请求


//获取角色列表
export  function templateSearch(data) {
    return request({
      url: '/wxbGoodsTemplate/pageTel',
      method: 'post',
      data   //只能是data
    })
  }


//保存角色
export  function templatesava(wxbGoodsTemplate) {
    return request({
      url: '/wxbGoodsTemplate/savaTemplate',
      method: 'post',
      data:wxbGoodsTemplate   //只能是data
    })
  } 
  //批量删除规格
export  function batchIds(data) {
    return request({
      url: '/wxbGoodsTemplate/BatchTelByIds',
      method: 'post',
      data   //只能是data
    })
  } 

//根据id获取规格明细
export  function queryTelOption(data) {
  return request({
    url: '/wxbGoodsSpecOptions/querySepcOption?id='+data,
    method: 'get'
  })
} 
export  function delTelById(data) {
  return request({
    url: '/wxbGoodsSpec/delSepcById?id='+data,
    method: 'get'
  })
} 
export  function listBrand() {
  return request({
    url: '/goods/listBrand',
    method: 'post'
  })
} 
export  function listSpec() {
  return request({
    url: '/wxbGoodsSpec/listAllSpec',
    method: 'post',
  })
} 